home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIWritablePropertyBag2.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  9KB  |  198 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWritablePropertyBag2.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIWritablePropertyBag2_h__
  6. #define __gen_nsIWritablePropertyBag2_h__
  7.  
  8.  
  9. #ifndef __gen_nsIPropertyBag2_h__
  10. #include "nsIPropertyBag2.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIWritablePropertyBag2 */
  19. #define NS_IWRITABLEPROPERTYBAG2_IID_STR "ee42c54a-19d3-472b-8bc3-76318d5ab5f4"
  20.  
  21. #define NS_IWRITABLEPROPERTYBAG2_IID \
  22.   {0xee42c54a, 0x19d3, 0x472b, \
  23.     { 0x8b, 0xc3, 0x76, 0x31, 0x8d, 0x5a, 0xb5, 0xf4 }}
  24.  
  25. class NS_NO_VTABLE nsIWritablePropertyBag2 : public nsIPropertyBag2 {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWRITABLEPROPERTYBAG2_IID)
  29.  
  30.   /* void setPropertyAsInt32 (in AString prop, in PRInt32 value); */
  31.   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, PRInt32 value) = 0;
  32.  
  33.   /* void setPropertyAsUint32 (in AString prop, in PRUint32 value); */
  34.   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, PRUint32 value) = 0;
  35.  
  36.   /* void setPropertyAsInt64 (in AString prop, in PRInt64 value); */
  37.   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, PRInt64 value) = 0;
  38.  
  39.   /* void setPropertyAsUint64 (in AString prop, in PRUint64 value); */
  40.   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, PRUint64 value) = 0;
  41.  
  42.   /* void setPropertyAsDouble (in AString prop, in double value); */
  43.   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value) = 0;
  44.  
  45.   /* void setPropertyAsAString (in AString prop, in AString value); */
  46.   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value) = 0;
  47.  
  48.   /* void setPropertyAsACString (in AString prop, in ACString value); */
  49.   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value) = 0;
  50.  
  51.   /* void setPropertyAsAUTF8String (in AString prop, in AUTF8String value); */
  52.   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value) = 0;
  53.  
  54.   /* void setPropertyAsBool (in AString prop, in boolean value); */
  55.   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, PRBool value) = 0;
  56.  
  57.   /* void setPropertyAsInterface (in AString prop, in nsISupports value); */
  58.   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value) = 0;
  59.  
  60. };
  61.  
  62. /* Use this macro when declaring classes that implement this interface. */
  63. #define NS_DECL_NSIWRITABLEPROPERTYBAG2 \
  64.   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, PRInt32 value); \
  65.   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, PRUint32 value); \
  66.   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, PRInt64 value); \
  67.   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, PRUint64 value); \
  68.   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value); \
  69.   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value); \
  70.   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value); \
  71.   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value); \
  72.   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, PRBool value); \
  73.   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSIWRITABLEPROPERTYBAG2(_to) \
  77.   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, PRInt32 value) { return _to SetPropertyAsInt32(prop, value); } \
  78.   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, PRUint32 value) { return _to SetPropertyAsUint32(prop, value); } \
  79.   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, PRInt64 value) { return _to SetPropertyAsInt64(prop, value); } \
  80.   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, PRUint64 value) { return _to SetPropertyAsUint64(prop, value); } \
  81.   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value) { return _to SetPropertyAsDouble(prop, value); } \
  82.   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value) { return _to SetPropertyAsAString(prop, value); } \
  83.   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value) { return _to SetPropertyAsACString(prop, value); } \
  84.   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value) { return _to SetPropertyAsAUTF8String(prop, value); } \
  85.   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, PRBool value) { return _to SetPropertyAsBool(prop, value); } \
  86.   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value) { return _to SetPropertyAsInterface(prop, value); } 
  87.  
  88. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  89. #define NS_FORWARD_SAFE_NSIWRITABLEPROPERTYBAG2(_to) \
  90.   NS_IMETHOD SetPropertyAsInt32(const nsAString & prop, PRInt32 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsInt32(prop, value); } \
  91.   NS_IMETHOD SetPropertyAsUint32(const nsAString & prop, PRUint32 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsUint32(prop, value); } \
  92.   NS_IMETHOD SetPropertyAsInt64(const nsAString & prop, PRInt64 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsInt64(prop, value); } \
  93.   NS_IMETHOD SetPropertyAsUint64(const nsAString & prop, PRUint64 value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsUint64(prop, value); } \
  94.   NS_IMETHOD SetPropertyAsDouble(const nsAString & prop, double value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsDouble(prop, value); } \
  95.   NS_IMETHOD SetPropertyAsAString(const nsAString & prop, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAString(prop, value); } \
  96.   NS_IMETHOD SetPropertyAsACString(const nsAString & prop, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsACString(prop, value); } \
  97.   NS_IMETHOD SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsAUTF8String(prop, value); } \
  98.   NS_IMETHOD SetPropertyAsBool(const nsAString & prop, PRBool value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsBool(prop, value); } \
  99.   NS_IMETHOD SetPropertyAsInterface(const nsAString & prop, nsISupports *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsInterface(prop, value); } 
  100.  
  101. #if 0
  102. /* Use the code below as a template for the implementation class for this interface. */
  103.  
  104. /* Header file */
  105. class nsWritablePropertyBag2 : public nsIWritablePropertyBag2
  106. {
  107. public:
  108.   NS_DECL_ISUPPORTS
  109.   NS_DECL_NSIWRITABLEPROPERTYBAG2
  110.  
  111.   nsWritablePropertyBag2();
  112.  
  113. private:
  114.   ~nsWritablePropertyBag2();
  115.  
  116. protected:
  117.   /* additional members */
  118. };
  119.  
  120. /* Implementation file */
  121. NS_IMPL_ISUPPORTS1(nsWritablePropertyBag2, nsIWritablePropertyBag2)
  122.  
  123. nsWritablePropertyBag2::nsWritablePropertyBag2()
  124. {
  125.   /* member initializers and constructor code */
  126. }
  127.  
  128. nsWritablePropertyBag2::~nsWritablePropertyBag2()
  129. {
  130.   /* destructor code */
  131. }
  132.  
  133. /* void setPropertyAsInt32 (in AString prop, in PRInt32 value); */
  134. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsInt32(const nsAString & prop, PRInt32 value)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* void setPropertyAsUint32 (in AString prop, in PRUint32 value); */
  140. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsUint32(const nsAString & prop, PRUint32 value)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* void setPropertyAsInt64 (in AString prop, in PRInt64 value); */
  146. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsInt64(const nsAString & prop, PRInt64 value)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150.  
  151. /* void setPropertyAsUint64 (in AString prop, in PRUint64 value); */
  152. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsUint64(const nsAString & prop, PRUint64 value)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* void setPropertyAsDouble (in AString prop, in double value); */
  158. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsDouble(const nsAString & prop, double value)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* void setPropertyAsAString (in AString prop, in AString value); */
  164. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsAString(const nsAString & prop, const nsAString & value)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168.  
  169. /* void setPropertyAsACString (in AString prop, in ACString value); */
  170. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsACString(const nsAString & prop, const nsACString & value)
  171. {
  172.     return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174.  
  175. /* void setPropertyAsAUTF8String (in AString prop, in AUTF8String value); */
  176. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsAUTF8String(const nsAString & prop, const nsACString & value)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* void setPropertyAsBool (in AString prop, in boolean value); */
  182. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsBool(const nsAString & prop, PRBool value)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* void setPropertyAsInterface (in AString prop, in nsISupports value); */
  188. NS_IMETHODIMP nsWritablePropertyBag2::SetPropertyAsInterface(const nsAString & prop, nsISupports *value)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* End of implementation class template. */
  194. #endif
  195.  
  196.  
  197. #endif /* __gen_nsIWritablePropertyBag2_h__ */
  198.